<?php if(count($data)>0){
  	foreach($data as $k=>$list){?>

<table cellspacing="0" cellpadding="0" class="bder-clp mgt5">
  <tbody>
    <tr>
      <td class="w225 bder_d5 bder-l0 pdt6 pdb10 f13"><img width="95" height="55" class="fl pdr10" title="<?php echo "Best of Myanmar - ".$list['destination'] ?>" alt="<?php echo "Best of Myanmar - ".$list['destination'] ?>" src="<?php echo base_url()."uploads/flight/".$list['avatar'] ?>">
        <p class="blue mgt0 mgb0"><?php echo $list['description']; ?></p></td>
      <td class="w90 bder_d5 f11 txt_center"><?php if($_GET['arriveto']==1) echo 'Nyaung-U(Bagan)';
		  													else if($_GET['arriveto']==2) echo 'Heho(Inle)';
															else if($_GET['arriveto']==3) echo 'Mandalay';
															else if($_GET['arriveto']==4) echo 'Yangon';?>
        <br>
        <strong class="f13">
        <?php if($_GET['arriveto']==1) echo 'NYU';
									else if($_GET['arriveto']==2) echo 'HEH';
									else if($_GET['arriveto']==3) echo 'MDL';
									else if($_GET['arriveto']==4) echo 'YGN';?>
        <?php echo date('H:i',strtotime($list['timedeparture'])) ?> </strong></td>
      <td class="w72 bder_d5 f11 txt_center"><?php if($_GET['departfrom']==1) echo 'Nyaung-U(Bagan)';
		  													else if($_GET['departfrom']==2) echo 'Heho(Inle)';
															else if($_GET['departfrom']==3) echo 'Mandalay';
															else if($_GET['departfrom']==4) echo 'Yangon';?>
        <br>
        <strong class="f12">
        <?php if($_GET['departfrom']==1) echo 'NYU';
									else if($_GET['departfrom']==2) echo 'HEH';
									else if($_GET['departfrom']==3) echo 'MDL';
									else if($_GET['departfrom']==4) echo 'YGN';?>
        <?php echo date("H:i",strtotime($list['timearrive'])) ?></strong></td>
      <td class="w72 txt_center bder_d5 f11 lheight20"><strong class="f13">
        <?php if($list['stop']==0) echo "Non-Stop"; else echo "1 Stop";?>
        </strong><br />
        <a class="blue f11 ff_museo500 undeline" href="javascript:void(0);" onClick="showbox('boxshoworhide<?php echo $k ?>');">Details</a></td>
      <td class="w72 txt_center bder_d5 f11"><strong class="f13"><?php echo $list['duration']; ?></strong></td>
      <td class="w170 txt_center bder_d5 f18 orange ff_museo700 lheight27 bder-r0">$<?php echo $list['priceofadult'] ?><br />
        <a href="javascript:void(0);" class="ff_museo500 f14 bgr_143167 white pd4 mgt4" onclick="BookFlight_RoundTrip(<?php echo $list['id'] ?>,<?php echo $_GET['oneway'] ?>,'<?php echo $_GET['departfrom']?>','<?php echo $_GET['arriveto']?>','<?php echo $_GET['adult']?>','<?php echo $_GET['child']?>','<?php echo $_GET['departuredate']?>','<?php echo $_GET['returningdate']?>');">BOOK</a></td>
    </tr>
  </tbody>
</table>
<div class="item bgr_gray pdt16 black lheight17 pdb15 hide" id="boxshoworhide<?php echo $k ?>">
  <div class="fl  pdl20 w332 bold">
    <?php if($list['airline']==1)echo "Air Bagan";
		  		else if($list['airline']==2)echo "Air Mandalay"; 
                else if($list['airline']==3)echo "Air KBZ"; 
                else if($list['airline']==4)echo "Myanmar Airways"; 
                else if($list['airline']==5)echo "Yangon Airways";
				else if($list['airline']==6)echo "Asian wings";?>
    <?php echo ' '.$list['codeofairline'] ?>
    <?php echo "<br>".$list['type'] ?> </div>
  <div class="fr w273 pdr20 bold"> <?php echo date('D.F.j',strtotime($list['timedeparture'])) ?><br>
    <?php if($list['fromplace']=="Nyaung-U (Bagan)") echo "Nyaung-U (NYU)";
					else if($list['fromplace']=="Heho (Inle)") echo "Heho (HEH)";
					else if($list['fromplace']=="Mandalay") echo "Mandalay (MDL)";
					else if($list['fromplace']=="Yangon") echo "Yangon (YGN)";?>
    to
    <?php if($list['destination']=="Nyaung-U (Bagan)") echo "Nyaung-U (NYU)";
					else if($list['destination']=="Heho (Inle)") echo "Heho (HEH)";
					else if($list['destination']=="Mandalay") echo "Mandalay (MDL)";
					else if($list['destination']=="Yangon") echo "Yangon (YGN)";?>
  </div>
</div>
<?php }	  
  }?>
